home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / wdj0797.zip / HOWARD.ZIP / IDLEDEMO.CPP < prev    next >
C/C++ Source or Header  |  1997-04-13  |  1KB  |  56 lines

  1. // IdleDemo.cpp : Defines the class behaviors for the application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "IdleDemo.h"
  6. #include "IdleMain.h"
  7.  
  8. #ifdef _DEBUG
  9. #define new DEBUG_NEW
  10. #undef THIS_FILE
  11. static char THIS_FILE[] = __FILE__;
  12. #endif
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CIdleDemoApp
  16.  
  17. BEGIN_MESSAGE_MAP(CIdleDemoApp, CWinApp)
  18.    //{{AFX_MSG_MAP(CIdleDemoApp)
  19.    //}}AFX_MSG
  20.    ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  21. END_MESSAGE_MAP()
  22.  
  23. /////////////////////////////////////////////////////////////////////////////
  24. // CIdleDemoApp construction
  25.  
  26. CIdleDemoApp::CIdleDemoApp()
  27. {
  28. }
  29.  
  30. /////////////////////////////////////////////////////////////////////////////
  31. // The one and only CIdleDemoApp object
  32.  
  33. CIdleDemoApp theApp;
  34.  
  35. /////////////////////////////////////////////////////////////////////////////
  36. // CIdleDemoApp initialization
  37.  
  38. BOOL CIdleDemoApp::InitInstance()
  39. {
  40.    // Standard initialization
  41.  
  42.    CMainDlg dlg;
  43.    m_pMainWnd = &dlg;
  44.    int nResponse = dlg.DoModal();
  45.    if (nResponse == IDOK)
  46.    {
  47.    }
  48.    else if (nResponse == IDCANCEL)
  49.    {
  50.    }
  51.  
  52.    // Since the dialog has been closed, return FALSE so that we exit the
  53.    //  application, rather than start the application's message pump.
  54.    return FALSE;
  55. }
  56.